// 检查是否登录
function checkLogin() {
      // let val = wx.getStorageSync(key);
    let token =wx.getStorageSync('token');  
    //console.log('token:'+token.length)
    if(token.length < 1){
      //console.log('token不存在:'+token)
      return false
    }else{
      //console.log('token存在:'+token)
      return true
    }
}

export default {
  checkLogin
}